﻿using System;

namespace Orid.Management.Statistics.Tools.Decomposition.Data
{
    class DataStoreOffline:DataStore
    {
         string connectString, tableName;

         public DataStoreOffline()
        {

            connectString =Config.Setting .SettingInstance.DBAddress_Online;

            tableName = Config.Setting.SettingInstance.DataStore_Offline;
        }

         public override int GetFileSize(Guid? DataStoreID)
         {
              try
              {

                  if (DataStoreID == null)
                  {
                      return -1;
                  }

                  return GetFileSize(DataStoreID, connectString, tableName);

              }
              catch (System.Data.SqlClient.SqlException ex)
              {
                  throw (new Exception(ex.Message));
              }
         }
    }
}
